@import '../../tools/utils';

.page-sort {
  .section {
    display: block;
    &:nth-of-type(n+2) {
      margin-top: 40px;
      border-top: 1px dotted #dddddd;
      padding-top: 18px;
    }
  }

  .section-header {
    display: block;
    height: 40px;
    line-height: 40px;
    .title {
      @include verticalAlign();
    }
    .field-search {
      @include verticalAlign();
      width: 20em;
      margin-left: 60px;
      height: 30px;
      line-height: normal;
      padding: 0 0.5em;
    }
    .btn-save {
      @include verticalAlign();
      @include cursor();
      margin-left: 60px;
      color: #ffffff;
      background-color: #4c8fbd;
      height: 30px;
      line-height: 30px;
      border-radius: 3px;
      padding: 0 1em;
      transition: 150ms all linear 0ms;
      &:active {
        background-color: darken(#4c8fbd, 10%);
        box-shadow: 2px 2px 2px #dddddd;
      }
    }
  }

  .section-content {
    @include clearfix();
    padding: 10px 0;
  }

  .source-items {
    float: left;
    width: 40%;
    text-align: left;
    margin: 0;
    border: 1px solid #dddddd;
    height: 200px;
    overflow-y: scroll;
    .item {
      @include cursor();
      display: block;
      height: 30px;
      line-height: 30px;
      list-style-type: none;
      transition: 150ms all linear 0ms;
      &:nth-of-type(n+2) {
        border-top: 1px solid #dddddd;
      }
      &:last-child {
        border-bottom: 1px solid #dddddd;
      }
      &:hover {
        background-color: rgba(0, 0, 0, .1);
      }
      &:active {
        background-color: rgba(0, 0, 0, .3);
      }
    }
    .label {
      background-color: transparent !important;
      color: #000000;
    }
  }

  .selected-items {
    float: left;
    width: 55%;
    text-align: left;
    margin-left: 5%;
    margin-bottom: 0;
    border: 1px solid #dddddd;
    height: 200px;
    overflow-y: scroll;
    .item {
      @include cursor();
      @include ellipsis();
      position: relative;
      display: block;
      height: 30px;
      line-height: 30px;
      list-style-type: none;
      transition: 150ms all linear 0ms;
      padding-right: 100px;
      &:nth-of-type(n+2) {
        border-top: 1px solid #dddddd;
      }
      &:last-child {
        border-bottom: 1px solid #dddddd;
      }
      &:hover {
        //background-color: rgba(0, 0, 0, .1);
      }
      &:active {
        //background-color: rgba(0, 0, 0, .3);
      }
    }
    .label {
      background-color: transparent !important;
      color: #000000;
    }
    .btn-remove {
      @include cursor();
      position: absolute;
      top: 50%;
      right: 1em;
      height: 20px;
      line-height: 20px;
      margin-top: -10px;
      color: #4c8fbd;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}
